package com.iot.enums;

public enum AcceptInviteContentEnum {

    CHINESE(0,"$X同意了你的邀请关注"),
    TRADITIONAL_CHINESE(1,"$X同意了你的邀請關注"),
    ENGLISH(2,"$X agrees to your invitation to follow"),
    FRENCH(3,"$X a accepté votre invitation à suivre"),
    GERMAN(4,"$X stimmt Ihrer Einladung zu, folgen"),
    ITALIAN(5,"$X ha accettato il tuo invito a seguire"),
    JAPANESE(6,"$Xはあなたの招待状に同意しました"),
    POLISH(7,"$X zgodził się z twoim zaproszeniem do uwagi"),
    PORTUGUESE(8,"$X concordou com seu convite para seguir"),
    RUSSIAN(9,"$X согласился с вашим приглашением следить"),
    SPANISH(10,"$X acepta tu invitación a seguir"),
    ARABIC(11,"وافق $X على دعوتك للمتابعة"),
    GREEK(12,"$X συμφώνησε με την πρόσκλησή σας να δώσει προσοχή"),
    KOREAN(13,"$X는 당신의 초청에 동의했습니다."),
    THAI(14,"$X ตกลงที่จะเชิญคุณติดตาม"),
    PERSIAN(15,"$X با دعوت شما موافقت کرد تا دنبال شود"),
    TURKISH(16,"$X, takip etme davetinizi kabul etti"),
    VIETNAMESE(17,"$X đã đồng ý với lời mời của bạn để theo dõi"),
    DUTCH(18,"$X is het ermee eens met uw uitnodiging om aandacht te besteden"),
    DANISH(19,"$X er enig i din invitation til at være opmærksom på"),
    CZECH(20,"$X souhlasil s vaší pozvánkou"),
    SWEDISH(21,"$X kom överens med din inbjudan att uppmärksamma"),
    FINNISH(22,"$X on samaa mieltä kutsusta"),
    BULGARIAN_LANGUAGE(23,"$X се съгласи с вашата покана да следи"),
    UKRAINIAN(24,"$X погодився з вашим запрошенням"),
    HEBREW(25,"$X מסכים להזמנה שלך לשים לב");

    private Integer code;

    private String content;


    AcceptInviteContentEnum(Integer code, String content) {
        this.code = code;
        this.content = content;
    }

    public Integer getCode() {
        return code;
    }

    public String getContent() {
        return content;
    }

    public static String getByCode(Integer code){
        if (null == code) {
            return CHINESE.getContent();
        }

        for (ApplyContentEnum value : ApplyContentEnum.values()) {
            if (value.getCode().equals(code)) {
                return value.getContent();
            }
        }
        return CHINESE.getContent();
    }
}
